// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import store from '@/store/index'
import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/css/main.css'//全局css样式

Vue.use(ElementUI);
Vue.config.productionTip = false
Vue.filter('UtoDate',function (t) {
    const d=new Date(t*1000)
    return d.getFullYear()+'-'+(d.getMonth()+1)+'-'+d.getDate()+' '+d.getHours()+':'+(d.getMinutes()<10?'0'+d.getMinutes():d.getMinutes())
})

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    store,
    components: {App},
    template: '<App/>'
})
